package com.data;

import com.constant.Constant;
import com.net.AsyncRequest;
import com.net.ClientException;
import com.net.RequestParameter;

/**
 * 处理模块统计和推送信息统计
 * <flag> : sys表示模块统计
 * msg : 表示消息统计
 * @author mjh
 *
 */
public final class ModuleData extends BaseData {

	@Override
	public void startParse(RequestParameter parameter) throws Exception,
			ClientException {
		String flag = parameter.getValue("flag");
		parameter.remove("flag");
		if(flag.equals("sys"))
			AsyncRequest.openUrl(Constant.SERVER_URL + "/module/sys", AsyncRequest.HTTP_GET, parameter);
		else if(flag.equals("msg"))
			AsyncRequest.openUrl(Constant.SERVER_URL + "/module/msg", AsyncRequest.HTTP_GET, parameter);
	}

}
